<?php
/**
 * Created by PhpStorm.
 * User: alice
 * Date: 2015/12/28
 * Time: 12:26
 */

/**
 * Class Involved_ShippingModel
 */

class Involved_ShippingModel extends BaseModel{

    protected $table = 'shipping';


    /**
     * 获取默认配送信息
     * @return mixed
     * @author alice
     * @date 2016-2-23
     */
    public function GetShippingDefault()
    {
        return DB::table($this->table)
            ->select('shipping_id','shipping_code')
            ->where('is_default',1)
            ->first();
    }

    /**
     * 获取配送列表
     * @return mixed
     * @author alice
     * @date 2016-2-23
     */
    public function GetShippingList()
    {
        return DB::table($this->table)
            ->select('shipping_id','shipping_code')
            ->get();
    }

}